package com.harmonyos.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName tb_Psychological
 */
@TableName(value ="tb_Psychological")
@Data
public class TbPsychological implements Serializable {
    /**
     * 
     */
    @TableId
    private String Src;

    /**
     * 
     */
    private String text;

    /**
     * 
     */
    private Integer numberCanyu;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbPsychological other = (TbPsychological) that;
        return (this.getSrc() == null ? other.getSrc() == null : this.getSrc().equals(other.getSrc()))
            && (this.getText() == null ? other.getText() == null : this.getText().equals(other.getText()))
            && (this.getNumberCanyu() == null ? other.getNumberCanyu() == null : this.getNumberCanyu().equals(other.getNumberCanyu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSrc() == null) ? 0 : getSrc().hashCode());
        result = prime * result + ((getText() == null) ? 0 : getText().hashCode());
        result = prime * result + ((getNumberCanyu() == null) ? 0 : getNumberCanyu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", Src=").append(Src);
        sb.append(", text=").append(text);
        sb.append(", numberCanyu=").append(numberCanyu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}